package com.nb82.bean.weather.codeEnum;

public enum WeatherCodeEnum {
	Sunny("00","晴","Sunny"),
	Cloudy("01","多云","Cloudy"),
	Overcast("02","阴","Overcast"),
	
	Shower("03","阵雨","Shower"),
	Thundershower("04","雷阵雨","Thundershower"),
	ThundershowerWithHail("05","雷阵雨伴有冰雹","ThundershowerWithHail"),
	
	Sleet("06","雨夹雪","Sleet"),
	LightRain("07","小雨","LightRain"),
	ModerateRain("08","中雨","ModerateRain"),
	HeavyRain("09","大雨","HeavyRain"),
	Storm("10","暴雨","Storm"),
	HeavyStorm("11","大暴雨","HeavyStorm"),
	SevereStorm("12","特大暴雨","SevereStorm"),
	
	
	SnowFlurry("13","阵雪","SnowFlurry"),
	LightSnow("14","小雪","LightSnow"),
	ModerateSnow("15","中雪","ModerateSnow"),
	HeavySnow("16","大雪","HeavySnow"),
	Snowstorm("17","暴雪","Snowstorm"),
	
	Foggy("18","雾","Foggy"),
	IceRain("19","冻雨","IceRain"),
	Duststorm("20","沙尘暴","Duststorm"),
	
	LightToModerateRain("21","小到中雨","LightToModerateRain"),
	ModerateToheavyRain("22","中到大雨","ModerateToheavyRain"),
	HeavyToStorm("23","大到暴雨","HeavyToStorm"),
	StormToHeavyStorm("24","暴雨到大暴雨","StormToHeavyStorm"),
	HeavyToSevereStorm("25","大暴雨到特大暴雨","HeavyToSevereStorm"),
	
	LightToModerateSnow("26","小到中雪 ","LightToModerateSnow"),
	ModerateToHeavySnow("27","中到大雪","ModerateToHeavySnow"),
	HeavySnowToSnowStorm("28","大到暴雪","HeavySnowToSnowStorm"),
	
	Dust("29","浮沉","Dust"),
	Sand("30","扬沙","Sand"),
	Sandstorm("31","强沙尘暴","Sandstorm"),
	Haze("53","霾","Haze"),
	Unknown("99","无","Unknown");
	
	private final String num,zn,en;
	WeatherCodeEnum(String num ,String zn,String en){
		this.num = num;
		this.zn = zn;
		this.en = en;
	}

	public String getNum() {
		return num;
	}

	public String getZn() {
		return zn;
	}
	public String getEn() {
		return en;
	}
	public static WeatherCodeEnum get(String id){
		for (WeatherCodeEnum codeEnum : values()) {
			if (codeEnum.getNum().equals(id)) {
				return codeEnum;
			}
		}
		return null;
	}
}
